package com.bothin.experiment4.model;

import javax.persistence.*;

@Table(name = "notice")
public class Notice {
    /**
     * 主键
     */
    @Id
    private Integer id;

    /**
     * 提醒值
     */
    @Column(name = "notice_num")
    private Integer noticeNum;

    public Notice() {
    }

    public Notice(Integer id, Integer noticeNum) {
        this.id = id;
        this.noticeNum = noticeNum;
    }

    /**
     * 获取主键
     *
     * @return id - 主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置主键
     *
     * @param id 主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取提醒值
     *
     * @return notice_num - 提醒值
     */
    public Integer getNoticeNum() {
        return noticeNum;
    }

    /**
     * 设置提醒值
     *
     * @param noticeNum 提醒值
     */
    public void setNoticeNum(Integer noticeNum) {
        this.noticeNum = noticeNum;
    }
}